Previous Book Contents Book Index Next

Inside Macintosh: QuickTime /
Chapter 2 - Movie Toolbox / Movie Toolbox Reference
Functions for Editing Movies / Adding Samples to Media Structures


EndMediaEdits

The EndMediaEdits function ends a media-editing session.

pascal OSErr EndMediaEdits (Media theMedia); 
theMedia
Specifies the media for this operation. Your application obtains this media identifier from such Movie Toolbox functions as NewTrackMedia and GetTrackMedia (described on page 2-138 and page 2-190, respectively).
DESCRIPTION
You use the EndMediaEdits function to tell the Movie Toolbox that you are done adding samples to a movie data file. The Movie Toolbox then performs the appropriate processing. For example, for disk-based media, the Movie Toolbox relinquishes write-access to the disk file. You should call EndMediaEdits only if you successfully started a media-editing session with the BeginMediaEdits function, which is described in the previous section.

ERROR CODES
invalidMedia-2008This media is corrupted or invalid

Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996